﻿/**
 * 码内/间跳转用JS插件
 * creating the source code of the plugin
 * @author yanzai
 * 日期: 2015年3月11日 <br/>
 */
CKEDITOR.plugins.add( 'codejump', {
    icons: 'codejump',
    init: function( editor ) {    	
    	// define an editor command that performs an action associated with them.
    	editor.addCommand( 'codejump', new CKEDITOR.dialogCommand( 'codejumpDialog' ) );
    	//  define a button that will be associated with the command.
    	//  Creating the Toolbar Button.
    	editor.ui.addButton( 'Codejump', {
    	    label: '码内/间跳转',
    	    command: 'codejump',
    	    toolbar: 'links'
    	});
    	// 
    	CKEDITOR.dialog.add( 'codejumpDialog', this.path + 'dialogs/codejump.js' );
    }
});

